home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95a.txt
/
000048_icon-group-sender _Sun Feb 5 12:35:20 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-09
|
2KB
Received: by cheltenham.cs.arizona.edu; Sun, 5 Feb 1995 06:16:09 MST
To: icon-group-l@cs.arizona.edu
Date: 5 Feb 1995 12:35:20 GMT
From: ruiter@ruls41.fsw.LeidenUniv.nl (Jan-Peter de Ruiter)
Message-Id: <3h2gm8$bur@highway.LeidenUniv.nl>
Organization: Leiden University, The Netherlands
Sender: icon-group-request@cs.arizona.edu
References: <3grmq1$qn7@hermes.louisville.edu>
Subject: Re: emacs and icon
Errors-To: icon-group-errors@cs.arizona.edu
Mark D. McDonald (mdmcdo01@terra.spd.louisville.edu) wrote:
: Has anyone customized emacs to easily compile (interpret) an icon program
: (that is in the current buffer)?
Try adding the following code to your .emacs file. It puts the current
filename as a default input name to the icont interpreter, and also
adds a regexp so that you can jump to the line in your icon program
containing your error.
I hope the (long) lines will not be cut off by your newsreader. If so,
tell me and I'll resend it in a more intelligent way.
Cheers,
JP
;; begin code
(autoload 'icon-mode "icon.el") ;; assumes you have icon.el
(setq icon-mode-hook
'(lambda () (progn (make-local-variable 'compile-command)
(setq compile-command
(concat "icont " (file-name-nondirectory buffer-file-name)))
(make-local-variable 'compilation-error-regexp-alist)
(setq compilation-error-regexp-alist
'(("\\(File \\)\\([^;]+\\)\\(; Line \\)\\([0-9]+\\)\\( # \\)\\(.*$\\)" 2 4))))))
;; end code